function initLoginForm()
{
	$('myForm').addEvent('submit', function(e) {
		var loading = $('divWait');
	
		// Do not execute the actual submission; we'll handle it from here! :p
		new Event(e).stop();
	
		// Show loading message
		loading.setStyle('display', 'block');
	
		// Send the form data through a POST request
		this.send({
			onComplete: function(text) {
				// Hide loading message again
				loading.setStyle('display', 'none');
	
				// Handle response
				if (text == 'Login correct') {
					tabs.select(tabs.addTab('Ingelogd','Ingelogd','bla.php', true));
				}
			}
		});
	});
}